<%@ page import="com.lanou3g.code0522.Person" %>
<%@ page import="java.util.Map" %>
<%@ page import="java.util.HashMap" %>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%
    application.setAttribute("app","app域");
    session.setAttribute("session","session域");
    request.setAttribute("keyReq","request域");
    Person person = new Person();
    person.setName("张三");
    person.setAge(18);
    //定义的时候写泛型
    //new的时候不写泛型
    //这是java1.7de类型推断机制
    //jsp中没有,所有泛型不能省略
    Map<String,String>jobs =new HashMap<>();
    jobs.put("lanou","CEO");
    jobs.put("baidu","CTO");
    person.setJobs(jobs);

    session.setAttribute("user",person);
    pageContext.forward("/test03.jsp");
%>
